package com.itheima.service;

import com.itheima.dao.EmpDao;
import com.itheima.domain.Emp;

import java.util.List;

public class EmpService {
    EmpDao dao = new EmpDao();

    public List<Emp> list(int page) {
        return dao.list(page);
    }

    public int getTotal() {
        return dao.getTotal();
    }

    public void delete(String empno) {
        dao.delete(empno);
    }

    public Emp findById(String empno) {
        return dao.findById(empno);
    }

    public void update(Emp e) {
        dao.update(e);
    }
}
